<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div {
            height: 100px;
            background-color: skyblue;

            line-height: 100px;
        }
    </style>
</head>
<body>
    <div class="div">文字</div>
</body>
</html>